package com.medical.Mapper;

import com.medical.DTO.AppointmentsDTO;
import com.medical.DTO.AppointmentsPageDTO;
import com.medical.VO.AppointmentsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AppointmentsMapper {
    //添加预约
    void insert(AppointmentsDTO appointments);
    
    //更新预约
    void update(AppointmentsDTO appointments);


    //删除预约
    void delete(Integer id);
    
    //通过id查询预约
    AppointmentsDTO getById(Integer id);
    
    //条件分页查询
    List<AppointmentsVO> list(AppointmentsPageDTO appointments);


    //更新状态
    void updateStatus(@Param("id") Integer id, @Param("status") String status);

}
